package com.dingding.study.entity;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import lombok.Data;
import org.apache.commons.collections.CollectionUtils;

import java.util.*;
import java.util.stream.Collectors;

@TableName("auth_permission_template")
@Data
public class Permission {

    private long id;

    private String title;

    private String code;

    private String domain;

    private long sort;

    private long version;

    private long parentId;

//    private Integer sort;

    @TableField(exist = false)
    List<Permission> children;

    public static void main(String[] args) {
        Map<String, String> map = Maps.newHashMap();
        map.put("areaStatistics","true");
        map.put("doctorGroupStatistics", "false");
        System.out.println(JSONArray.toJSON(map));
    }

}
